package Demo2;
class Student03{
    String name;
    int age;
    void read(){
        System.out.println("大家好,我是"+name+",年龄"+age);
    }
}
public class Example03 {
    public static void main(String[] args) {
        Student03 stu=new Student03();
        stu.name="张三";
        stu.age=-18;
        stu.read();
    }
}
